package com.example.aop.bnapc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.example.aop.common.ForumService;

public class TestBeanNameAutoProxyCreator {
	public static void main(String[] args) {
		ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		ForumService forumService = applicationContext.getBean(ForumService.class);
		forumService.removeForum(1);
		forumService.removeTopic(2);
	}
}
